package com.alix.paymoney.http;


import com.alix.paymoney.entity.BaseBean;
import com.alix.paymoney.entity.ChannelBean;
import com.alix.paymoney.entity.DataBean;
import com.alix.paymoney.http.request.CodeRequest;
import com.alix.paymoney.http.request.LoginRequest;
import com.alix.paymoney.http.request.RecordRequest;
import com.alix.paymoney.http.request.VerifyRequest;

import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Query;

/**
 * Created by admin on 2017/2/24.
 */

public interface ApiService {
    //获取验证码
    @POST("msg/verify")
    Call<BaseBean> getCode(@Query("telphone") String telphone);

    //登录
    @POST("user/login")
    Call<DataBean> login(@Query("telphone") String telphone,@Query("verifyCode") String verifyCode);

    //获取渠道列表
    @GET("channel/list")
    Call<ChannelBean> getChannelList(@Query("type") String type);

    @POST("view/get")
    Call<DataBean>getChannelRecord(@Query("channelId") String channelId,@Query("token") String token);

    @POST("user/fix")
    Call<BaseBean>verifyInfo(@Body VerifyRequest verifyRequest);

}
